from flask import Flask, request

from chatGPT import chatGPT

app = Flask(__name__)

@app.route("/")
def get_result():
    return "Hello World!"

@app.route("/add", methods=["POST"])
def add():
    content = request.json['content']
    result = chatGPT(content)
    return result


if __name__ == "__main__":
    app.run()